﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BasicBase/BasicBase.master" AutoEventWireup="true"
    CodeFile="EmployeeCardStat.aspx.cs" Inherits="BasicBase_SoldierArchive_EmployeeCardStat"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li>
            <asp:DropDownList ID="ddlDepartment" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged">
                <asp:ListItem></asp:ListItem>
            </asp:DropDownList>
        </li>
    </ul>
    合同制队员编号总数：<asp:Label runat="server" ID="Establishment"></asp:Label>个&nbsp;已使用：<asp:HyperLink
        runat="server" ID="UseCount"></asp:HyperLink>个&nbsp;错误编号：<asp:HyperLink runat="server"
            ID="ErrorCount"></asp:HyperLink>个&nbsp;未使用：<asp:HyperLink runat="server" ID="NoUserCount"></asp:HyperLink>个&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重号：<asp:HyperLink
        ID="Repeat" runat="server"></asp:HyperLink>
    <div style="padding: 2px 6px; border: solid 1px #FEDBB5; margin: 4px 0; background-color: #FFFCDC">
        <span style="color: Red">编码规则：</span>&nbsp;&nbsp;&nbsp;&nbsp;编制数：<asp:Label ID="lblEstablishment"
            runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;前缀编码:<asp:Label ID="lblFrontCode"
                runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;起始编码:<asp:Label ID="StartNum"
                    runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;结束编码:<asp:Label ID="EndNum" runat="server"></asp:Label>
    </div>
    <asp:GridView ID="gvSoldiers" runat="server" AutoGenerateColumns="False" DataKeyNames="SoldierID,DepartmentID"
        OnRowDeleting="gvSoldiers_RowDeleting" Width="100%" OnRowDataBound="gvSoldiers_RowDataBound"
        Caption="<span> 合同制队员详细信息</span>">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="30px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CardID" HeaderText="士兵证号" />
            <asp:BoundField DataField="SoldierName" HeaderText="姓名" />
            <asp:BoundField DataField="DepartmentName" HeaderText="单位" />
            <asp:BoundField DataField="DutyName" HeaderText="职务" />
            <asp:BoundField DataField="RankName" HeaderText="警衔" />
            <asp:TemplateField HeaderText="出生年月">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblBirthday"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="入伍年月">
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblJoinTime"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="NativeName" HeaderText="籍贯" />
            <asp:HyperLinkField DataNavigateUrlFields="SoldierID" DataNavigateUrlFormatString="EmployeeView.aspx?ID={0}"
                HeaderText="查看" Target="_blank" Text="&lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;../../Images/UserView.gif&quot;/&gt;" />
        </Columns>
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" PageSize="20" runat="server" OnPageSizeChange="ListPageContral1_PageSizeChange" />
</asp:Content>
